package top.fzqblog.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 抽离
 * @since 2017-07-15
 */
@TableName(resultMap = "BaseResultMap")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;

	/**
	 * 
	 */
	private String name;

	/**
	 * 
	 */
	private String uk;

	/**
	 * 
	 */
	@TableField(value = "share_info", el = "shareInfo.shareId")
	private ShareInfo shareInfo;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUk() {
		return uk;
	}

	public void setUk(String uk) {
		this.uk = uk;
	}

    public ShareInfo getShareInfo() {
        return shareInfo;
    }

    public void setShareInfo(ShareInfo shareInfo) {
        this.shareInfo = shareInfo;
    }

    @Override
	protected Serializable pkVal() {
		return this.id;
	}

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", uk='" + uk + '\'' +
                ", shareInfo=" + shareInfo +
                '}';
    }
}
